﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RMRDoctorList.aspx.cs" Inherits="MedicWeb.forms.Editors.MedRegDoctorList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="RMRScriptManager" runat="server" >
                </asp:ScriptManager>
    <div>
        <asp:UpdateProgress ID="UpdateProgressRMR" runat="server" AssociatedUpdatePanelID="UpdatePanelRMR">
            <ProgressTemplate>
                Update in progress...
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanelRMR" runat="server">
            <ContentTemplate>
        <asp:Label ID="Label1" runat="server" Text="Поиск по началу фамилии"></asp:Label>
                <asp:TextBox ID="tbRMRSearch" runat="server" Width="200px" Text="А"></asp:TextBox>
                <asp:Button ID="btnRMRSearch" runat="server" Text="Найти" 
                    onclick="btnRMRSearch_Click" UseSubmitBehavior="False" />
        
                <br />
                <asp:GridView ID="DataGrid1" runat="server" Width="600px" AllowPaging="true" AllowSorting="True"
                    PageSize="20" EnableSortingAndPagingCallbacks="True"
                    onpageindexchanging="DataGrid1_PageIndexChanging" onsorting="DataGrid1_Sorting"
                    AutoGenerateColumns="False" ClientIDMode="Static" 
                    onrowcommand="DataGrid1_RowCommand" onrowcreated="DataGrid1_RowCreated" 
                    DataKeyNames="Id" onrowdatabound="DataGrid1_RowDataBound"> 
                    
                    <SelectedRowStyle BackColor="#3399FF" Font-Bold="True" ForeColor="#333333" />

                    <Columns>
                        
                        <asp:BoundField HeaderText="Фамилия" DataField="Surname" SortExpression="Surname" />
                        <asp:BoundField HeaderText="Имя" DataField="Name" SortExpression="Name" />
                        <asp:BoundField HeaderText="Отчетсво" DataField="Patroname" SortExpression="Patroname" />
                        <asp:BoundField HeaderText="Год рождения" DataField="BeathYear" SortExpression="BeathYear" />
                        <asp:BoundField HeaderText="Должность" DataField="Post" SortExpression="Post" />
                        
                    </Columns>
                    <EmptyDataTemplate>
                        Выборка не содержит данных
                    </EmptyDataTemplate>
                    
                </asp:GridView>
                <br />
                <asp:Button ID="btnSelectRMR" runat="server" Text="Выбрать" 
                    ClientIDMode="Static" onclick="btnSelectRMR_Click" />
                
            </ContentTemplate>
        </asp:UpdatePanel>
        
    </div>

    
    </form>
</body>
